{/include file="simpla/common/header.html"/}
{/include file="simpla/common/left.html"/}
<div id="main-content">
  <h2>欢迎您 {/$_adminname/}</h2>
  <p id="page-intro">系统日志信息！</p>
  <div class="clear"></div>
  <div class="content-box">
    <div class="content-box-header">
      <h3>系统日志</h3>
      <ul class="content-box-tabs">
        <li><a href="{/get_url rule="/system/log" data="type=0"/}" {/if $type eq 0/}class="default-tab"{//if/}>新增商品记录</a></li>
        <li><a href="{/get_url rule="/system/log" data="type=1"/}" {/if $type eq 1/}class="default-tab"{//if/}>入库记录</a></li>
        <li><a href="{/get_url rule="/system/log" data="type=2"/}" {/if $type eq 2/}class="default-tab"{//if/}>销售记录</a></li>
      </ul>
      <div class="clear"></div>
    </div>
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
		<div class="form">
          <form id="js-form" method="post" action="{/get_url rule='/system/log' data="type=$type"/}">
            <fieldset class="clearfix">
              <p>开始时间： <span>
                <input type="text" value="{/$stime/}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="text-input min-input" name="stime" />
                </span>&nbsp;结束时间： <span>
                <input type="text" value="{/$etime/}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="text-input min-input" name="etime" />
                </span><small>(格式：2012-01-01)</small> <input type="submit" name="" id="button" class="button" value="查询" /></p>
            </fieldset>
          </form>
        </div>
        <table>
          <thead>
            <tr>
              <th>ID</th>
              <th>操作者</th>
              <th>操作内容</th>
              <th>时间</th>
            </tr>
          </thead>
          <tfoot>
            <tr>
              <td colspan="5">{/$pagebar/}</td>
            </tr>
          </tfoot>
          <tbody>
          {/section name=i loop=$log/}
          <tr>
            <td>{/$log[i].log_id/}</td>
            <td>{/$log[i].username/}</td>
            <td>{/$log[i].content/}</td>
            <td>{/$log[i].dateymd/}</td>
          </tr>
          {/sectionelse/}
          <tr>
            <td colspan="5">无日志</td>
          </tr>
          {//section/}
            </tbody>
        </table>
      </div>
    </div>
  </div>
  {/include file="simpla/common/copy.html"/} </div>
{/include file="simpla/common/footer.html"/}